/* 初始化toast和loading样式 */
#app{
  //font-family: 'Avenir', Helvetica, Arial, sans-serif;
  font-family: @global-font-family;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: @global-default-color;
  height: 100%;
  background: #f7f7f7;

  .vux-toast{
    .weui-toast{
      top: 11.25em;
    }
  }
  .vux-loading{
    .weui-toast{
      top: 11.25em;
    }
  }
  .vux-header{
    background: #fff;
    .vux-header-left{
      i{
        color: #333;
      }
    }
    .vux-header-title{
      color: #333;
    }
    .vux-header-right{
      b{
        color: #333;
      }
    }
  }

  -moz-user-select:none; /* Firefox私有属性 */
  -webkit-user-select:none; /* WebKit内核私有属性 */
  -ms-user-select:none; /* IE私有属性(IE10及以后) */
  -khtml-user-select:none; /* KHTML内核私有属性 */
  -o-user-select:none; /* Opera私有属性 */
  user-select:none; /* CSS3属性 */

  img {
    //background-color: #ccc;
  }
}

/*公共样式--开始*/
// 清楚浮动
.clearfix {
  zoom: 1;
}
.clearfix:after {
  content: ".";
  width: 0;
  height: 0;
  visibility: hidden;
  display: block;
  clear: both;
  overflow:hidden;
}
// 左浮动
.fl {
  float: left
}
// 右浮动
.fr {
  float: right
}
// 文字居左
.tl {
  text-align: left;
}
// 文字居中
.tc {
  text-align: center
}
// 文字居右
.tr {
  text-align: right;
}
// 单行文本溢出显示省略号
.ellipse {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 双行文本溢出显示省略号
.ellipse-two {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

// 行块兼容ie
.inline{
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

.userMaterialTitle{
  padding: 0 .2rem;
  h2{
    display: inline-block;
    font-size: .16rem;
    font-weight: 500;
    color: #333;
    line-height: .5rem;
    position: relative;
    margin-right: .1rem;
  }
  h2.active {
    color: #15A29C;
    span{
      display: inline-block;
      width: 100%;
      height: .02rem;
      background-color: #15A29C;
      position: absolute;
      left: 0;
      bottom: 0;
    }
  }
}

.btnBox{
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  .btnDef{
    border: none;
    width: 100%;
    line-height: .4rem;
    font-size: .16rem;
    font-weight: 500;
    color: #fff;
    background-color: #15A29C;
    text-align: center;
    border-radius: .05rem;
    border: 1px solid #15A29C;
    outline: none;
  }
  .btnClose{
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
  }
  .btnRed {
    background-color: #ee0a24;
    color: #fff;
    border: 1px solid #ee0a24;
  }
}

.worksDetailNavInfo{
  padding-bottom: .2rem;
  p{
    display: inline-block;
    font-size: .14rem;
    font-weight: 500;
    color: #333333;
    line-height: .22rem;
  }
  span{
    padding: 0 .1rem;
  }
}
